﻿using System.ComponentModel.DataAnnotations;

namespace AnQinManagermentBackendAPI.Model.DTO.CodeRule
{
    /// <summary>
    /// 编码规则表 - 更新模型
    /// </summary>
    public class CodeRuleUpdateDTO
    {
        /// <summary>
        /// 编码规则ID
        /// </summary>
        [Required(ErrorMessage = "编码规则Id不可为空")]
        public string Id { get; set; }

        /// <summary>
        /// 编码规则
        /// </summary>
        [Required(ErrorMessage = "编码规则Rule不可为空")]
        public string Rule { get; set; }
    }
}
